package cn.web.web_module.entity;

import cn.itcast.pojo.role;

import java.io.Serializable;
import java.util.ArrayList;
import cn.itcast.pojo.role;

/**
 * (WebModule)实体类
 *
 * @author 小松
 * @since 2020-06-19 08:55:58
 */
public class WebModule implements Serializable {
    private static final long serialVersionUID = 700395383902345936L;
    /**
    * 组件ID
    */
    private Integer moduleId;
    /**
    * 组件名字
    */
    private String moduleName;
    /**
    * 组件地址
    */
    private String modulePath;
    /**
    * 组件图标
    */
    private String moduleIcon;
    /**
    * 父组件id
    */
    private Integer moduleFatherId;

    /**
     * 二级目录
     */
    private ArrayList<WebModule> moduleChild;

    /**
     * 对应角色
     */
    private role role;

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModulePath() {
        return modulePath;
    }

    public void setModulePath(String modulePath) {
        this.modulePath = modulePath;
    }

    public String getmoduleIcon() {
        return moduleIcon;
    }

    public void setmoduleIcon(String moduleIcon) {
        this.moduleIcon = moduleIcon;
    }

    public Integer getModuleFatherId() {
        return moduleFatherId;
    }

    public void setModuleFatherId(Integer moduleFatherId) {
        this.moduleFatherId = moduleFatherId;
    }


    public ArrayList<WebModule> getModuleChild() {
        return moduleChild;
    }

    public void setModuleChild(ArrayList<WebModule> moduleChild) {
        this.moduleChild = moduleChild;
    }

    public cn.itcast.pojo.role getRole() {
        return role;
    }

    public void setRole(cn.itcast.pojo.role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "WebModule{" +
                "moduleId=" + moduleId +
                ", moduleName='" + moduleName + '\'' +
                ", modulePath='" + modulePath + '\'' +
                ", moduleIcon='" + moduleIcon + '\'' +
                ", moduleFatherId=" + moduleFatherId +
                ", moduleChild=" + moduleChild +
                ", role=" + role +
                '}';
    }
}